package com.sjb.cp.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.sjb.cp.model.po.SpaceUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sjb.cp.model.request.spaceuser.SpaceUserAddRequest;
import com.sjb.cp.model.request.spaceuser.SpaceUserQueryRequest;
import com.sjb.cp.model.vo.SpaceUserVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author dell
* @description 针对表【space_user(空间成员表)】的数据库操作Service
* @createDate 2025-02-14 10:30:52
*/
public interface SpaceUserService extends IService<SpaceUser> {

    /**
     * 请求添加空间成员
     * @param spaceUserAddRequest
     * @return
     */
    long addSpaceUser(SpaceUserAddRequest spaceUserAddRequest);

    /**
     * spaceUser基础查询
     * @param spaceQueryRequest
     * @return
     */
    QueryWrapper<SpaceUser> getQueryWrapper(SpaceUserQueryRequest spaceQueryRequest);


    /**
     * 空间成员查询
     * @param spaceUser
     * @param request
     * @return
     */
    SpaceUserVo getSpaceUserVo(SpaceUser spaceUser, HttpServletRequest request);


    /**
     * 获取空间用户封装视图列表
     * @param spaceUserList
     * @return
     */
    List<SpaceUserVo> getSpaceUserVoList(List<SpaceUser> spaceUserList);

}
